package _3Field;

public class Person {
	public String name;
	private int age;
	
	private void eat()
	{
		System.out.println(name+"吃饭");
	}
	
	public void sleep()
	{
		System.out.println(name+"zzzzzz");
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

}
